package com.tpp.threat_perception_platform.dao;

import com.tpp.threat_perception_platform.param.MyParam;
import com.tpp.threat_perception_platform.pojo.HostVul;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author yokui
* @description 针对表【host_vul】的数据库操作Mapper
* @createDate 2025-06-16 02:26:41
* @Entity com.tpp.threat_perception_platform.pojo.HostVul
*/
public interface HostVulMapper {

    int deleteByPrimaryKey(Long id);

    int insert(HostVul record);

    int insertSelective(HostVul record);

    HostVul selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(HostVul record);

    int updateByPrimaryKey(HostVul record);

    void deleteByMacAddress(String macAddress);

    List<HostVul> findAll(@Param("param") MyParam param);
    //模糊搜索相关
    List<HostVul> findByMacAddress(MyParam param);
    List<HostVul> findByHostName(MyParam param);
    List<HostVul> findByVulName(MyParam param);
    List<HostVul> findByVulLevel(MyParam param);

    List<String> selectAbnormalHosts();

    int selectCount();
}
